package com.ulife.order.service.enumeration;

/**
 * Created by Ulife on 2016/1/3.
 * 销售订单支付状态
 */
public enum SaleOrderPayStatus {

    WaitPay(1),
    PartialPay(2),
    Paid(3);

    private int value = 1;

    private SaleOrderPayStatus(int value) {
        this.value = value;
    }

    public static SaleOrderPayStatus valueOf(int value){
        switch (value){
            case 1:return WaitPay;
            case 2:return PartialPay;
            case 3:return Paid;
            default:return null;
        }
    }
    public int value(){
        return this.value;
    }
}
